$(function(){
	   $(".submit").click(function(){
		   var car = $("#hidden_car").val();
		   var county = $("#hidden_county").val();
		   var timer  = $("#hidden_time").val();
		   if(!car) {
			   alert("请选择汽车型号");
			   return false;
		   }
		   if(!county) {
			   alert("请选择城市");
			  return false;
		   }
		   if(!timer||timer=="") {
		   alert("请选择时间");
			   return false;
		   }
		  /* var uri  = UrlEncode("http://115.29.40.117/huanjiyou/wechat/brand/list");
		   var url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxe7a3b3e31937fce3&&redirect_uri="+uri+"&response_type=code&scope=snsapi_base&state=123#wechat_redirect";
			   window.location.href=url;*/
		   var url = $("#webRoot").val()+"/wx/oilpack/listOilPackAndCarBrand";
		    window.location.href=url;
		   return true;
    	}); 
});